package com.auxgroup.smarthome.enterpriseapi.responsebody.auxresult;

import com.auxgroup.smarthome.enterpriseapi.responsebody.AbstractErrorBody;

/**
 * @Author: laiqiuhua.
 * @Date: 2017/8/18 10:45.
 */
public class AuxDeviceSummaryResult extends AbstractErrorBody {
    /**
     * 设备总数
     */
    private int device_total;
    /**
     * 设备激活总数
     */
    private int activated_total;
    /**
     * 故障设备总数
     */
    private int fault_total;

    public AuxDeviceSummaryResult(){}

    public AuxDeviceSummaryResult(int device_total, int activated_total, int fault_total) {
        this.device_total = device_total;
        this.activated_total = activated_total;
        this.fault_total = fault_total;
    }

    public int getDevice_total() {
        return device_total;
    }

    public void setDevice_total(int device_total) {
        this.device_total = device_total;
    }

    public int getActivated_total() {
        return activated_total;
    }

    public void setActivated_total(int activated_total) {
        this.activated_total = activated_total;
    }

    public int getFault_total() {
        return fault_total;
    }

    public void setFault_total(int fault_total) {
        this.fault_total = fault_total;
    }

    public AuxDeviceSummaryResult addupTotal(int device_total, int activated_total, int fault_total) {
        this.device_total+=device_total;
        this.activated_total+=activated_total;
        this.fault_total+=fault_total;
        return this;
    }

}
